<template>
	<view class="">
		<view class="text-center fen-data">
			<view class="text-center fen-title">粉丝数量</view>
			<view class="text-center fen-num">{{fenList.count}}</view>
		</view>
		<view class="fen-kong">

		</view>
		<view class=" fen-top">
			<view class="display-f fen-list" v-for=" (item ,index) in fenList.list" :key="index">
				<view class="team-pic">
					<image :src="item.avatar" mode=""></image>
				</view>
				<view class="">
				<view class="line-height-30">
						姓名：{{item.nickname}}
				</view>
					<view >
							手机号：{{item.mobile}}
					</view>
					<view class="display-f fen-consume">
						<view class="">
							消费专区：{{item.total_order_amount}}
						</view>
						<view class="ml-auto">
							团队消费：{{item.fans_money}}
						</view>
					</view>
				</view>
				
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				fenList: [

				],
			}
		},
		onShow() {
			this.getFans()
		},
		methods: {
			getFans() {
				this.tui.request("/user/fans", "POST", {
					type: "all"
				}).then((res) => {
					console.log(res)
					if (res.code == 1) {
						this.fenList = res.data
					} else if (res.code == -1) {
						this.tui.setIsLogin(false)
					} else {
						if (res.show == 1) {
							this.tui.toast(res.msg);
						}
					}
				}).catch((res) => {})
			},
		}
	}
</script>

<style lang="scss">
	.fen-top {
		border-top: 2rpx solid #E5E5E5;
		margin-top: 20rpx;
	}

	.fen-list {
		border-bottom: 2rpx solid #E5E5E5;

		padding: 20rpx 30rpx;

		.team-pic {
			width: 150rpx;
			height: 150rpx;
			border-radius: 100rpx;
			overflow: hidden;
			margin-right: 30rpx;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.fen-consume {
			color: #626262;
			font-size: 26rpx;
			width: 540rpx;
			margin-top: 10rpx;
		}
	}

	.fen-kong {
		border-left: 10rpx solid #3DA964;
		height: 40rpx;
		margin-left: 20rpx;
		margin-top: 20rpx;
	}

	.fen-data {
		color: #3DA964;
		margin-top: 40rpx;

		.fen-title {}

		.fen-num {
			font-size: 80rpx;
			font-weight: 800;
		}
	}
	.line-height-30{
		line-height: 60rpx;
	}
</style>
